import request from '@/utils/request'

export function getAwards(data) {
  return request({
    url: '/prize/page',
    method: 'post',
    data
  })
}

export function addAward(data) {
  return request({
    url: '/prize/insert',
    method: 'post',
    data
  })
}

export function deleteAward(data) {
  return request({
    url: '/prize/delete',
    method: 'post',
    data
  })
}

export function updateAward(data) {
  return request({
    url: '/prize/update',
    method: 'post',
    data
  })
}
// 物流信息
export function getLocation(data) {
  return request({
    url: '/prize/getLogistic',
    method: 'post',
    data
  })
}
// 物流信息
export function getMapJSON() {
  return request({
    url: '/admin/address',
    method: 'get'
  })
}
// 物流信息
export function parseAdress(data) {
  return request({
    url: '/prize/get-address-details',
    method: 'post',
    data
  })
}
